//
//  YJBTradeBillView.m
//  YunJiaBaoFirst
//
//  Created by 腾云小白龍 on 16/7/30.
//  Copyright © 2016年 腾云小白龍. All rights reserved.
//

#import "YJBTradeBillView.h"

@implementation YJBTradeBillView

-(void)YJBTradeBillViewWithName:(NSString *)name withPrice:(NSString*)price withCounts:(NSString *)counts withColor:(UIColor *)color{
    UILabel * nameLabel = ({
        UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(15, 0, (SCREEN_WIDTH - 30)/3, 44)];
        label.font = [UIFont systemFontOfSize:14];
        label.textAlignment = NSTextAlignmentLeft;
        label.text = name;
        label.textColor = color;
        label;
    });
    [self addSubview:nameLabel];
    
    UILabel * priceLabel = ({
        UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(nameLabel.frame), 0, (SCREEN_WIDTH - 30)/3, 44)];
        label.font = [UIFont systemFontOfSize:14];
        label.textAlignment = NSTextAlignmentCenter;
        label.textColor = MAIN_COLOR;
        label.text = price;
        label.textColor = color;

        label;
    });
    [self addSubview:priceLabel];
    
    UILabel * countsLabel = ({
        UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(priceLabel.frame), 0, (SCREEN_WIDTH - 30)/3, 44)];
        label.font = [UIFont systemFontOfSize:14];
        label.textAlignment = NSTextAlignmentCenter;
        label.textColor = MAIN_COLOR;
        label.text = counts;
        label.textColor = color;
        label;
    });
    [self addSubview:countsLabel];
    
    
}

@end
